package com.atguigu.scala.chapter11

/**
 * @author lizikuan
 * @date 2021/5/25 20:18
 */
object $01_GenericMethod {
  def getlength[T](array: Array[T]) = {
    array.length
  }
  def main(args: Array[String]): Unit = {
    val array1 = Array(1, 23, 2, 5, 61, 23, 12, 32, 1)
    println(getlength(array1))

  }
}
